<template>
	<view class="">
		<view class="addres">
			<view class="add_adress_info" @tap="returnOrder">
				<view class="detail">安徽省合肥市包河区庐州大道合肥万达城亲湖苑C区A栋</view>
				<view class="name">王磊 16602197016</view>
				<view class="icon_edit" @tap.stop="edit"><i class="icon">&#xe621;</i></view>
				<view class="default">
					默认
				</view>
			</view>
		</view>
		<view class="no_adress_tips">
			<image src="../../static/image/mine/adress01.png" mode=""></image>
			<view class="no_adress_tips_tips">没有收获地址,新建一个吧!</view>
		</view>
		<view class="add_adress" @tap="addaddress">
			<image src="../../static/image/mine/adress02.png" mode=""></image>
			<view class="add_adress_add">
				<i class="icon">&#xe626;</i>
				新建地址
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	methods: {
		addaddress() {
			uni.navigateTo({
				url: '/pageD/adress/addAdress'
			});
		},
		returnOrder () {
			uni.redirectTo({
				url: '/pageB/order/confirmorder'
			});
		},
		edit () {
			uni.navigateTo({
				url: '/pageD/adress/editadress'
			});
		}
	}
};
</script>

<style lang="less" scoped>
.no_adress_tips {
	width: 100%;
	text-align: center;
	overflow: hidden;
	image {
		display: block;
		width: 200upx;
		height: 198upx;
		margin: auto;
		margin-top: 80upx;
	}
	.no_adress_tips_tips {
		font-size: 24upx;
		color: #999999;
	}
}
.add_adress {
	width: 528upx;
	height: 85upx;
	margin: 70upx auto;
	position: relative;
	image {
		width: 100%;
		height: 100%;
	}
	.add_adress_add {
		width: 100%;
		height: 100%;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		text-align: center;
		line-height: 84upx;
		font-size: 32upx;
		color: #ffffff;
		.icon {
			font-size: 32upx;
			// line-height: 840upx;
			color: #ffffff;
			margin-right: 10upx;
		}
	}
}
.addres {
	width: 100%;
	padding: 0 30upx;
	box-sizing: border-box;
	background-color: #FFFFFF;
	.add_adress_info {
		width: 100%;
		height: 206upx;
		padding: 30upx 0;
		box-sizing: border-box;
		border-bottom: 2upx solid #e1e1e1;
		position: relative;
		.detail {
			width: 600upx;
			font-size: 28upx;
			color: #333333;
			line-height: 48upx;
		}
		.name {
			margin-top: 16upx;
			font-size: 24upx;
			color: #333333;
		}
		.default {
			position: absolute;
			right: 0;
			top: 38upx;
			font-size: 24upx;
			color: #f73e2f;
		}
		.icon_edit {
			position: absolute;
			right: 0;
			top: 90upx;
			z-index: 9;
			.icon {
				color: #999999;
			}
		}
	}
	.add_adress_info:last-child {
		border-bottom: none;
	}
}
</style>
